<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>广东省传播平台-项目库录入页</title>
<link rel="stylesheet" type="text/css" href="<%=path%>/css/common.css" />
<link rel="stylesheet" type="text/css" href="<%=path%>/css/tag.css" />
<script type="text/javascript" src="<%=path%>/js/jquery-1.7.2.js"></script>
<script type="text/javascript" src="<%=path%>/js/ztree/jquery.ztree.core-3.2.js"></script>
<script type="text/javascript" src="<%=path%>/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
$(function() {
	
	//添加高亮显示
	//selectNav('nav6');
});
function doSubmit(url)
	{ 
		document.forms[0].action=url;
		document.forms[0].submit();
	}
</script>
</head>

<body>
<!-- 顶栏start -->
<jsp:include page="../common/top.jsp"></jsp:include>
<!-- 顶栏end -->

<!-- 顶部start -->
<div id="main">
	<div class="body">
	<jsp:include page="../common/nav.jsp"></jsp:include>
		<!-- 主体 -->
		<div class="main_body">
		<form id="form" action="budgetControlListAction.action" method="post" style=margin-bottom:0;" >
			<table class="condition bg1" style="width:100%; font-size:14px; font-weight:bold; color:#000000;" align="center">
             <tr style="height:40px;">
             <td width="10%" style="text-align:right;"><label>计提截止时间：</label>  </td>
             <td width="15%"> <input id = "sourcePutEndTime" name="sourcePutEndTime" type="text" class="Wdate text" id="dateTime" 
				style="width:150px;" onfocus="WdatePicker({dateFmt:'yyyy-MM'})" value="${sourcePutEndTime}" readonly="readonly" /></td>
			 <td width="15%"><s:select name="accrualCity" list="dataListCITY" listKey="id" listValue="datavalue" >
				</s:select>
			</td>
			<td width="60%"><input id = "searchbu" type="button" class="btn-title" value="搜索" onclick="doSubmit('budgetControlListAction.action');"/></td>
			 </tr>
		 </table>
		 </form>
			<div id="list_div">
				<table class="table_list" style="width:100%">
				    <tr>
					<th colspan="13" style="text-align:left">资源投放总表</th>
					</tr>
					<tr class="bg">
						<th>类别</th>
						<th>子类</th>
						<th>预算值</th>
						<th>当前累计完成值</th>
						<th>当月计划投放量</th>
						<th>当月实际完成值</th>
						<th>计提金额</th>
						<th>当前累计完成百分比</th>
						<th>计提金额百分比</th>
						<th>标准值</th>
						<th>当前累计完成预警</th>
					</tr>
					<s:iterator value="budgetControls" id="bc" >
					<tr>
					
						<td >${bc.costTypeName}</td>
						<td>${bc.costSubTypeName}</td>
						<td><fmt:formatNumber value='${bc.planAmountTotal}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${bc.fundAmountTotal}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${bc.planAmountNow}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${bc.fundAmountNow}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${bc.jtAmount}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value="${bc.fundRatioTotal}" type="percent" maxFractionDigits ="2"/></td>
						<td><fmt:formatNumber value="${bc.jtAmountRatioTotal}" type="percent" maxFractionDigits ="2"/></td>
						<td><fmt:formatNumber value="${bc.standardRatio}" type="percent" maxFractionDigits ="2"/></td>
						<td>
						<s:if test="#bc.scheduleMon =='大于进度'">
						
							<span style="color:red">${bc.scheduleMon}</span>
							</s:if>
							<s:else>
							
							<span style="color:rgb(102,102,102)">${bc.scheduleMon}</span>
							</s:else>
						</td>
					</tr>
					</s:iterator>
					<tr style="background-color:#ffffaa">
					<td>总计</td>
					<td>--</td>
					<td><fmt:formatNumber value='${totalBudgetControl.planAmountTotal}'maxFractionDigits ="3"/></td>
					<td><fmt:formatNumber value='${totalBudgetControl.fundAmountTotal}'maxFractionDigits ="3"/></td>
					<td><fmt:formatNumber value='${totalBudgetControl.planAmountNow}'maxFractionDigits ="3"/></td>
					<td><fmt:formatNumber value='${totalBudgetControl.fundAmountNow}'maxFractionDigits ="3"/></td>
					<td><fmt:formatNumber value='${totalBudgetControl.jtAmount}'maxFractionDigits ="3"/></td>
					<td><fmt:formatNumber value='${totalBudgetControl.fundRatioTotal}' type="percent" maxFractionDigits ="2"/></td>
					<td><fmt:formatNumber value='${totalBudgetControl.jtAmountRatioTotal}' type="percent"maxFractionDigits ="2"/></td>
					<td><fmt:formatNumber value='${totalBudgetControl.standardRatio}' type="percent"maxFractionDigits ="2"/></td>
					<td>
						<s:if test="totalBudgetControl.scheduleMon =='大于进度'">
							<span style="color:red">${totalBudgetControl.scheduleMon}</span>
						</s:if>
						<s:else>
							<span style="color:rgb(102,102,102)">${totalBudgetControl.scheduleMon}</span>
						</s:else>	
					</td>
				</tr>
			</table>
		  </div>
		</div>
	</div>
</div>
<!-- 顶部end -->


<!-- 底部start -->
		<jsp:include page="/jsp/common/bottom.jsp"></jsp:include> 
<!-- 底部end -->
</body>
</html>

